<%@page import="com.shop.domain.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userCertify.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
	<form action="admin/userCertify.do" method="post">
		<input type="text" name="username" placeholder="输入用户名查询">
        <input type="submit" value="查询">
	</form>
	
	<%
		User user = (User)request.getAttribute("user");
		if(user != null){	
	%>
			<div>
				用户姓名： <%=user.getRealName() %>
				<br>
				学号： <%=user.getStuId() %>
				<br>
				学院： <%=user.getCollege() %>
				<br>
				证件: <img src="certifyImage/<%=user.getUsername() %>.jpg">
			</div>
			
			<a href="admin/passCertify.do?username=<%=user.getUsername()%>">审核通过</a>
			<a href="admin/rejectCertify.do?username=<%=user.getUsername()%>">拒绝</a>
	<%
		}
	%>
	
  </body>
</html>
